@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #004e92, #000428);
  align-items: center;
  min-height: 100vh;
}

/* =================== HEADER =================== */
header{
  width:100%;
  background:#400080;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 30px;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
  text-decoration: none;
}

.logo-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo{
  width: 50px;
  height: 50px;
  border-radius:50%;
}

.logo-title h1{
  font-size:1.5rem;
  font-weight:700;
}

/* =================== DESKTOP NAV =================== */
.desktop-nav ul{
  display:flex;
  list-style:none;
  gap:20px;
  text-decoration: none;
}

.desktop-nav ul li a{
  color:#fff;
  font-weight:500;
  padding:6px 10px;
  border-radius:6px;
  transition:.3s;
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.nav-active{
  background:#fff;
  color:#000;
}

/* =================== HAMBURGER BUTTON =================== */
.menu-btn{
  display:none;
  font-size:26px;
  cursor:pointer;
  color:#fff;
  z-index:1050;
}

/* =================== MOBILE NAV =================== */
.mobile-nav{
  position:fixed;
  top:0;
  right:-80%;
  width:80%;
  height:100vh;
  background:#400080;
  padding:30px 22px;
  transition:.35s ease-in-out;
  z-index:1001;
  display:flex;
  flex-direction:column;
  gap:25px;
  text-decoration: none;
}

.mobile-nav.show{
  right:0;
}

.mobile-nav-header{
  display:flex;
  align-items:center;
  gap:12px;
}

.mobile-nav-header .logo{
  width:40px;
  height:40px;
}

.mobile-nav-header h2{
  font-size:1.3rem;
  font-weight:600;
  color:#fff;
}

.mobile-nav ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:15px;
}

.mobile-nav ul li a{
  color:#fff;
  font-size:1.05rem;
  font-weight:500;
  padding:10px 14px;
  border-radius:6px;
  transition:.3s;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.nav-active{
  background:#fff;
  color:#400080;
}

/* =================== MOBILE HEADER SETTINGS =================== */
@media(max-width:768px){
  .desktop-nav{ display:none; }
  .menu-btn{ display:block; }
  
  header{
    padding:12px 16px;
  }

  html, body{
    overflow-x:hidden !important;
  }
}

/* =================== FOOTER =================== */

footer {
  background-color: #400080;
  color: white;
  padding: 80px 80px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 20px;
}

.footer-box {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-box h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  border-bottom: 2px solid white;
  padding-bottom: 5px;
}
.footer-box a {
  color: white;
  text-decoration: none;
  display: block;
  margin: 5px 0;
  transition: color 0.3s ease;
}
.footer-box p {
  margin: 5px 0;
}
.footer-box a:hover {
  color: #ffdd57;
}

footer .copyright {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 15px;
  font-size: 0.9rem;
}

/* =================== MOBILE FOOTER =================== */
@media(max-width:768px){

  footer{
    padding:30px 15px;
  }

  .footer-container{
    display:flex;
    flex-direction:column;
    text-align:center;
    gap:20px;
  }

  .footer-box{
    padding:0;
  }

  .footer-box h4{
    width:80%;
    margin:0 auto 10px;
    border-bottom:1px solid rgba(255,255,255,0.4);
  }

  .footer-box a{
    font-size:.9rem;
    margin:4px 0;
  }

  .footer-box p{
    font-size:.9rem;
  }

  footer .copyright{
    font-size:.75rem;
    margin-top:15px;
    padding-top:10px;
  }
}



.form-container {
  display: flex;
  justify-content: center;
  margin: 1%;
}

/* Glassmorphism Form Container */
.container {
  width: 60%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px 50px;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.8s ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
}

label {
  display: block;
  margin-top: 18px;
  font-weight: 500;
  color: #e3e3e3;
  font-size: 14px;
}

.required {
  color: #ff5252;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
}

input[type="file"] {
  margin-top: 10px;
  color: #ccc;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

 
button {
  width: 100%;
  margin-top: 30px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 114, 255, 0.3);
  position: relative;
  overflow: hidden;
}

button:hover {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  box-shadow: 0 0 20px rgba(0, 114, 255, 0.7);
  transform: scale(1.03);
}

button:active {
  transform: scale(0.98);
}

/* Ripple Effect */
button::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  top: var(--y);
  left: var(--x);
  transform: scale(0);
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    width: 90%;
    padding: 25px;
  }
}




select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), 
                    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px),
                       calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Hover effect */
select:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

/* Focus effect (active state) */
select:focus {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}

/* Option list styling */
select option {
  background-color: #0a1a2f;
  color: #fff;
  padding: 10px;
}

/* Option hover (for some browsers) */
select option:hover {
  background-color: #004e92;
  color: #fff;
}

/* Scrollbar inside dropdown (for long lists) */
select::-webkit-scrollbar {
  width: 8px;
}

select::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

select::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

select::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}


.file-upload {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  width: 30%;
}

.file-upload label {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #fff;
}

.file-upload input[type="file"] {
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid transparent;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-family: "Poppins", sans-serif;
}

.file-upload input[type="file"]:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
}

.error-text {
  font-size: 13px;
  font-weight: 500;
  color: #ff4d4d;
  letter-spacing: 0.3px;
  transition: 0.3s ease;
  margin-left: 2px;
}
/*
.message {
  margin-bottom: 15px;
  padding: 10px;
  font-weight: bold;
  text-align: center;
}

*/

#toast {
  visibility: hidden;
  min-width: 300px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 14px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.4s, top 0.4s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  top: 40px;
}

#toast.success {
  background-color: #28a745;
}

#toast.error {
  background-color: #dc3545;
}

#toast.loading {
  background-color: #ff9800;
}
